/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "工单下发",TableName = "V_PLAN_WORK_ORDER_Action")]
    public partial class V_PLAN_WORK_ORDER_Action:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="Order_Id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid Order_Id { get; set; }

       /// <summary>
       ///工单
       /// </summary>
       [Display(Name ="工单")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string OrderCode { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ProductId")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ProductId { get; set; }

       /// <summary>
       ///产线
       /// </summary>
       [Display(Name ="产线")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string WorkCenterId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ProductBOMId")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ProductBOMId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ProcessRouteId")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ProcessRouteId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="OrderType")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string OrderType { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="OrderQuantity")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? OrderQuantity { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="PlanStart")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? PlanStart { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="PlanEnd")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? PlanEnd { get; set; }

       /// <summary>
       ///工单序号
       /// </summary>
       [Display(Name ="工单序号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string work_order_number { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="workpiece_id")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int workpiece_id { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="priority")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? priority { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="material_id")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? material_id { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="processing_grade")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? processing_grade { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="length")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? length { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="width")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? width { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="height")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? height { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="measure_number")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string measure_number { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="centring_number")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string centring_number { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="make_level_number")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string make_level_number { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="accuracy")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? accuracy { get; set; }

       /// <summary>
       ///排产序号
       /// </summary>
       [Display(Name ="排产序号")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       public decimal? ProductionSeqNumber { get; set; }

       /// <summary>
       ///是否排产
       /// </summary>
       [Display(Name ="是否排产")]
       [MaxLength(10)]
       [Column(TypeName="nvarchar(10)")]
       public string IsProduction { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="process_Status")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? process_Status { get; set; }

       /// <summary>
       ///激活工单
       /// </summary>
       [Display(Name ="激活工单")]
       [MaxLength(2)]
       [Column(TypeName="nvarchar(2)")]
       [Editable(true)]
       public string IsActivation { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Status")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string Status { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="CreateBy")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string CreateBy { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="CreateOn")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateOn { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="UpdateBy")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string UpdateBy { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="LastUpdateOn")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? LastUpdateOn { get; set; }

       /// <summary>
       ///检查信息
       /// </summary>
       [Display(Name ="检查信息")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Description { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="IsDeleted")]
       [Column(TypeName="bit")]
       public bool? IsDeleted { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="TopUpSort")]
       [Column(TypeName="int")]
       public int? TopUpSort { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="IsTopUp")]
       [Column(TypeName="bit")]
       public bool? IsTopUp { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="OneStatus")]
       [Column(TypeName="int")]
       public int? OneStatus { get; set; }

       /// <summary>
       ///执行中
       /// </summary>
       [Display(Name ="执行中")]
       [Column(TypeName="int")]
       public int? TwoStatus { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ThreeStatus")]
       [Column(TypeName="int")]
       public int? ThreeStatus { get; set; }

       /// <summary>
       ///异常
       /// </summary>
       [Display(Name ="异常")]
       [Column(TypeName="int")]
       public int? FourStatus { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="FiveStatus")]
       [Column(TypeName="int")]
       public int? FiveStatus { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="SixStatus")]
       [Column(TypeName="int")]
       public int? SixStatus { get; set; }

       /// <summary>
       ///需换刀
       /// </summary>
       [Display(Name ="需换刀")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int KnifeOneStatus { get; set; }

       /// <summary>
       ///程序加工完
       /// </summary>
       [Display(Name ="程序加工完")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int KnifeThreeStatus { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="processing_machines")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string processing_machines { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="UsedToolTotal")]
       [Column(TypeName="int")]
       public int? UsedToolTotal { get; set; }

       
    }
}